{% extends "base_generic.html" %}

{% block content %}
  <h1>续借: {{ book_instance.book.title }}</h1>
  <p>借阅人: {{ book_instance.borrower }}</p>
  <p {% if book_instance.is_overdue %} class="text-danger"{% endif %}>应归还日期: {{ book_instance.due_back }}</p>

  <form action="" method="post">
    {% csrf_token %}
    <table>
      {{ form.as_table }}
    </table>
    <input type="submit" value="提交" class="btn btn-primary">
  </form>
{% endblock %} 